package tiandang.core.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tiandang.core.dao.PromoManagerMapper;
import tiandang.core.model.PromoManager;
import tiandang.core.service.PromoManagerService;

import java.util.List;

@Service
public class PromoManagerServiceImpl implements PromoManagerService {

  @Autowired
  private PromoManagerMapper promoManagerMapper;

  @Override
  public List<PromoManager> getListByPromoId(Integer promoId) {
    return promoManagerMapper.getListByPromoId(promoId);
  }

  @Override
  public List<PromoManager> getListByManagerId(Integer managerId) {
    return promoManagerMapper.getListByManagerId(managerId);
  }
}
